/***variables***/
/*colors*/
@colorBG: #49708A;
@colorFont: #EBF7F8;
@colorLink: #CAFF42;
@colorHeader: #88ABC2;
@colorSpe: #D0E0EB;

@colorInterest: #222;

/*other colors*/
@colorBoxShadow: #444;
/*other*/
@slightBR: 2px;
@promoDeg: 45deg;
/*media*/
@maxSPhoneWidth: 720px;
@minSPhoneWidth: 481px;
@minDesktopWidth: 721px;
@maxPhoneWidth: 480px;
/*aside*/
@asideWidth: 140px;
/**/
.floatRight{float:right;}
.floatLeft{float:left !important;}
.floatNone{float:none;}
.bold{font-weight: bold;}
.center{text-align:center;}
.inline{display: inline;}
.block{display: block;}
.inlineBlock{display: inline-block;}
.none{display: none;}
.p100{width: 100%;}
.clear{clear: both;}

/***Global***/
* {margin: 0;padding: 0;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
body {font-family: 'Roboto', helvetica, sans-serif; font-size: 0.8em;color: @colorFont; background-color: @colorHeader;}
@media screen and (max-width: 720px) {body {font-size: 1em;}}
/**elements**/
a{color: @colorLink;text-decoration: none;
&:hover, &:active{color: @colorFont;}}

img{border: 0;}
h1{
	font-size: 1.2em;
	background-color: @colorHeader;
	color: @colorBG;
	padding: 2px 4px;
	margin: 0 0 5px 0;
}
h2{
	font-size: 1em;
	background-color: @colorSpe;
	color: @colorBG;
	padding: 0 4px;
	margin: 5px 0;
}
h3{
	font-size: 1em;
	color: @colorSpe;
	margin: 2px 0;
}

ul{list-style: square;}

.arrows (@border: 5px solid transparent) {
	width: 0; 
	height: 0; 
	border-left: @border;
	border-right: @border;
	margin: 0 auto;
}

div.arrow-down{
    .arrows;
	border-top: 5px solid transparent;
}
div.arrow-up{
    .arrows;
	border-bottom: 5px solid transparent;
}

/**absolute**/
section#absolute{
}

/**header**/
header{
	background-color: @colorHeader;
    margin-top: 40px;
    color: @colorBG;

    @media screen and (min-width: @minDesktopWidth) {
        position: fixed;
        width: @asideWidth;
        margin-top: 0;
        top: 0;
        z-index: -5;
    }

    div#siteTitle{
        padding: 5px;
        @media screen and (max-width: @maxSPhoneWidth) {
            padding: 5px;
        }
    }

    a#fgName{
        font-weight: 900;
        font-size: 2.7em;
        color: @colorBG;
        @media screen and (max-width: @maxSPhoneWidth) {
            font-size: 1.5em;
        }
        &:hover{
            text-decoration: underline;
            color: @colorFont;
        }
    }
    small#fgDesc{
        .bold;
        font-size: 0.9em;
    }
}

/***content***/
section.content{
    background-color: fade(@colorBG, 100%);
    box-shadow: 0px 0px 8px 4px @colorBoxShadow;
    padding-bottom: 10px;
    @media screen and (min-width: @minDesktopWidth) {
        margin-left: @asideWidth;
        padding-top :45px;
    }
}
section#fixed{
    /**navigation**/
    nav {
        .center;
        .bold;
        background-color: fade(@colorBG, 90%);;
        font-size: 1.4em;
        height:0px;
        overflow: hidden;
        -webkit-transition-property: height;
        -moz-transition-property: height;
        transition-property: height;
        -webkit-transition-duration: 0.5s;
        -moz-transition-duration: 0.5s;
        transition-duration: 0.5s;
        -webkit-transition-timing-function: ease-out;
        -moz-transition-timing-function: ease-out;
        transition-timing-function: ease-out;

        /*fixed nav*/
        .p100;
        position: fixed;
        z-index: 10;
        box-shadow: 0px 2px 6px 0px @colorBoxShadow;
        top: 40px;
        left: 0;

        div#navigation{ 
            div.menu{
                margin:auto; 

                a, span{
                    .block;
                    padding: 8px 5px;
                    text-align: center;
                    text-decoration: none;
                    color: @colorHeader;
                    background-repeat: no-repeat;
                    background-position: right center;

                    @media screen and (min-width: @minDesktopWidth) {
                        padding: 8px 23px 8px 5px;
                        &#tabExperience{
                            background-image: url(http://static.unkri.ch/img/icon.xp.png);
                        }
                        &#tabMotivation{
                            background-image: url(http://static.unkri.ch/img/icon.mtv.png);
                        }
                        &#tabInterests{
                            background-image: url(http://static.unkri.ch/img/icon.itr.png);
                        }
                        &#tabEducation{
                            background-image: url(http://static.unkri.ch/img/icon.edu.png);
                        }
                        &#tabSkills{
                            background-image: url(http://static.unkri.ch/img/icon.ski.png);
                        }
                    }
                }
                span{
                    background-color: @colorHeader;
                    color: @colorSpe;
                }
                a{
                    &:hover, &:active{
                        background-color: fade(@colorHeader, 70%);
                        color: @colorSpe;
                    }
                }
                @media screen and (min-width: @minDesktopWidth) {
                    .inlineBlock;
                }
            }
        }
        @media screen and (min-width: @minDesktopWidth) {
            text-align: left;
            min-height:38px !important;
            height: inherit !important;
            top: 0;
            left: (@asideWidth);
        }
    }
    div#menufolder{
        .center;
        .bold;
        color: @colorFont;
        cursor: pointer;
        padding: 5px 10px;
        font-size: 1.4em;
        background-color: fade(@colorBG, 90%);
        min-width: 90px;

        /*fixed menuFolder*/
        .p100;
        position: fixed;
        top: 0;
        z-index: 10;
        box-shadow: 0px 0px 4px 0px @colorBoxShadow;

        div#iconMenuFolder{
            .inlineBlock;
            height: 20px;
            width: 20px;
            margin-bottom: -4px;

             > div{
                .p100;
                background-color: @colorFont;
                height: 3px;
                margin: 0 0 3px 0;
                border-radius: @slightBR;
            }
        }

        @media screen and (min-width: @minDesktopWidth) {
            .none;
        }
    }
    div#promo{
        .center;
        background-color: @colorSpe;
        padding: 5px 60px;
        box-shadow: 0px 0px 4px 0px @colorBoxShadow;
        color: @colorBG;
        span{
            .bold;
            .block;
        }
        @media screen and (min-width: @minDesktopWidth) {
            margin-top: 0;
            -moz-transform:rotate(45deg);
            -webkit-transform:rotate(45deg);
            -o-transform:rotate(45deg);
            transform: rotate(45deg);
            position: absolute;
            z-index: 20;
            top: 15px;
            right: -50px;
            span{
                font-size: 1.5em;
            }
        }
    }
    
    div#promoWrapper{
        @media screen and (min-width: @minDesktopWidth) {
            width: 180px;
            height: 140px;
            overflow: hidden;
            position: absolute;
            top: 0;
            right: 0;
        }
    }
}

/**aside**/
aside#contact{
    .center;
    .bold;
    padding: 5px;
    font-size: 1.1em;
    margin-top:10px;

    @media screen and (min-width: @minDesktopWidth) {
        text-align: left;
        position: fixed;
        width: @asideWidth;
        top: 120px;
    }
    > ul{
        line-height: 35px;
        list-style-type: none;
        > li > a{
            background-color: @colorBG;
            border-radius: @slightBR;
            padding: 3px 5px;
            &:hover{
                background-color: @colorLink;
                color: @colorHeader;
            }
        }
    }
    div#map_canvas_contact{
        display: none;
        @media screen and (min-width: @minDesktopWidth) {
            display:block;
        }
    }
}

/**footer**/
footer{
	text-align: center;
    margin: 10px 0;
    > small{
        font-size: 0.8em;
    }
    div#share {
        width: 100px;
        padding: 5px 0;
        height: 30px;
        margin: 0 auto;
        
        a.fb-like {
            .floatRight;
        }
        div:nth-child(1){
            .floatLeft;
        }
    }
}

/**home**/
section#home{
    padding: 2%;
    > span{
        line-height: 1.5em;
    }
    span.paragraph{
        padding: 20px;
    }
    ul{
        padding-left: 40px;
    }

    div#homeMenu{
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
        -webkit-flex-direction: column;
        justify-content: space-between;
        -webkit-justify-content: space-between;
        flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        text-align: right;

        > div{
            .p100;
            .inlineBlock;
            margin: 5px auto;

            @media screen and (min-width: @minSPhoneWidth) {
                width: 150px;
                height: 100px;
            }
        }
        a.homeMenu{
            .inlineBlock;
            .bold;
            .p100;
            font-size: 1.8em;
            background-color: @colorHeader;
            border: solid @slightBR @colorBG;
            padding: 5px;
            height: 100%;

            -webkit-transition: -webkit-transform 0.2s ease-out;
            -moz-transition: -moz-transform 0.2s ease-out;
            -o-transition: -o-transform 0.2s ease-out;
            -ms-transition: -ms-transform 0.2s ease-out;
            transition: -ms-transform 0.2s ease-out;
            
            &:hover, &:active{
                border-color: @colorHeader;
            }
        }

        > div.over  a.homeMenu{
            border-style: dashed !important;
        }
        > div.moving  a.homeMenu{
            opacity: 0.4;
            -webkit-transform: scale(0.8);
            -moz-transform: scale(0.8);
            -ms-transform: scale(0.8);
            -o-transform: scale(0.8);
            transform: scale(0.8);
        }

        @media screen and (min-width: @minSPhoneWidth) {
            flex-direction: row;
            -webkit-flex-direction: row;
            text-align: left;
        }
    }
    @media screen and (min-width: @minDesktopWidth) {
        padding: 50px 5% 10px 2%;
    }
}

/**motivation**/
section#motivation{
    padding: 2%;
    > p{
        line-height: 1.5em;
        text-indent:3%;
    }
    @media screen and (min-width: @minDesktopWidth) {
        padding: 50px 5% 10px 2%;
    }
}

/**education**/
section#education{
    padding: 2%;
    @media screen and (min-width: @minDesktopWidth) {
        padding: 50px 5% 10px 2%;
    }
    ul{
        padding-left: 20px;
    }
    img{
        box-shadow: 0px 0px 4px 0px @colorBoxShadow;
        float: left;
        margin-right: 10px;
        -webkit-filter: grayscale(80%);
        -moz-filter: grayscale(80%);
        -ms-filter: grayscale(80%);
        -o-filter: grayscale(80%);
        filter: grayscale(80%);
    }
    @media screen and (max-width: 480px) {
        section#education img{
            max-width: 20%;
        }
    }

    div.educationCell{
        min-height: 105px;
        margin: 0 0 10px 0;
        span.year{
            font-size: 0.8em;
            color: @colorLink;
        }
        span.place{
            font-size: 0.8em;
            color: @colorSpe;
        }

        a.website{
            font-size: 0.9em;
        }
    }
}

/**experience**/
section#experience{
    img{
        .floatLeft;
        box-shadow: 0px 0px 4px 0px @colorBoxShadow;
        margin-right: 10px;
        -webkit-filter: grayscale(80%);
        -moz-filter: grayscale(80%);
        -ms-filter: grayscale(80%);
        -o-filter: grayscale(80%);
        filter: grayscale(80%);
        @media screen and (max-width: 480px) {
            max-width: 20%;
        }
    }

    div.experienceCell{
        margin: 0 0 10px 0;
        span.year{
            font-size: 1.5em;
            color: @colorFont;
            padding-left: 10px;
        }
        span.place{
            color: @colorFont;
        }
        span.company{
            color: @colorFont;
            font-weight: bold;
        }
        a.website{
            font-size: 0.9em;
        }
    }
    div.experienceCellShort{
        min-height: 120px;
        position: relative;
        padding: 5px 2%;
    }

    div.divFoldUnfolder{
        padding: 5px 0 0 0;
        text-align: center;
        cursor: pointer;
        span{
            background-color: @colorFont;
            border-radius: 2px;
            padding: 0 5px;
            color: @colorBG;
        }
    }
    div.shadowUp{
        box-shadow: 0px -5px 10px -3px @colorBoxShadow;
    }

    div.arrow-down{
        border-top-color: @colorFont;
    }
    div.arrow-up{
        border-bottom-color: @colorFont;
    }

    div.experienceCellMore{
        overflow: hidden;
        -webkit-transition-property: height;
        -moz-transition-property: height;
        transition-property: height;
        -webkit-transition-duration: 1s;
        -moz-transition-duration: 1s;
        transition-duration: 1s;
        -webkit-transition-timing-function: ease-out;
        -moz-transition-timing-function: ease-out;
        transition-timing-function: ease-out;

        div.wrapper{
            padding-bottom: 20px;
        }

        li{
            line-height: 1.5em;
        }
    }
    .projectFunction{
       color: @colorFont;
       font-style:italic;
    } 

    ul{
       padding-left: 20px;
    }
 }
 
 /**interests**/
section#interests{
    background: #efbd68 url(http://static.unkri.ch/img/bg.jpg) no-repeat center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: @colorInterest;
    overflow: auto;

    ul{
        padding: 0 30px;
    }

    span.year{
        color: @colorSpe;
    }
    div.interestsCategory{
        .floatLeft;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    div#Travel{
        width: 100%;
        div#map_canvas{
            min-width: 200px;
            @media screen and (max-width: @maxPhoneWidth) {
                .none;
            }
        }
    }
}

/**skills**/
section#skills{
    overflow: auto;

    span.level{
        width: 80px;
        height: 8px;
        border: solid 1px @colorHeader;
        border-radius: 2px;
        display: inline-block;
        margin: 0 5px 0 0;
        box-shadow: inset 0px 0px 1px 0px @colorBoxShadow;
        &:before { 
            content: '';
            display: block;
            height: 100%;
            background: @colorLink;
            width: 0px;
        }
    }
    span.level1:before{
        width: 25%;
    }
    span.level2:before{
        width: 50%;
    }
    span.level3:before{
        width: 75%;
    }
    span.level4:before{
        width: 100%;
    }

    small.skillDetails{
        .block;
        font-size: 0.8em;
    }

    span.olTitle{
        font-weight: bold;
        font-size: 1.2em;
        line-height: 2em;
    }

    ul{
        padding: 0 0 0 40px;
    }
    > div{
        .floatLeft;
        margin: 0 10px;
    }

    div.skillEduExp{
        .none;
        box-shadow: 0px 0px 4px 0px @colorBoxShadow;
        position: absolute;
        background-color: @colorHeader;
        padding: 2px 5px;;
        border: solid 1px @colorFont;
        
        > ul{
            list-style: none;
            padding: 0 0 0 10px;
        }
    }

    li.aSkill:hover div.skillEduExp{
        .block;
        border-radius: @slightBR;
    }
}